package cn.tedu.spring.auto;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class UserAuto {
    private String name;
    @Autowired
    @Qualifier(value = "cacheImpl1")
    private Cache cache;

    @Override
    public String toString() {
        return "UserAuto{" +
                "name='" + name + '\'' +
                ", cache=" + cache +
                '}';
    }
}
